# $Id: PKGBUILD 150433 2012-02-17 16:53:03Z andyrtr $
# Maintainer: Jan de Groot <jgc@archlinux.org>

pkgname=xorg-xfd
pkgver=1.1.1
pkgrel=1
pkgdesc="Displays all the characters in a font using either the X11 core protocol or libXft2"
arch=(i686 x86_64)
url="http://xorg.freedesktop.org/"
license=('custom')
depends=('libxaw' 'fontconfig' 'libxft' 'libxrender' 'libxmu')
makedepends=('xorg-util-macros')
source=(http://xorg.freedesktop.org/archive/individual/app/xfd-${pkgver}.tar.bz2)
sha256sums=('3fbef0d5ed6dc088017df156e748d187b2d1aaedc3de7ea96e505ea6d1af7b73')

build() {
  cd "${srcdir}/xfd-${pkgver}"
  ./configure --prefix=/usr
  make
}

package() {
  cd "${srcdir}/xfd-${pkgver}"
  make DESTDIR="${pkgdir}" install
  install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
  install -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/"
}
